home *** CD-ROM | disk | FTP | other *** search
/ The Games Machine 76 / XENIATGM66.iso / Indiana Jones / Indiana Jones.exe / RESOURCE / PREVIEW.GOB / cog_gen_spray.cog < prev    next >
Text File  |  1999-11-15  |  1KB  |  50 lines

  1. # Jones 3D Cog Script
  2. #
  3. # gen_SparksRed.cog
  4. #
  5. # Generates animated red sparks from the master.tpl
  6. #
  7. # [TRM]
  8. #
  9. # (C) 1998 LucasArts Entertainment Co. All Rights Reserved
  10. # ========================================================================================
  11.  
  12. symbols
  13.     
  14.     message        startup
  15.     message        pulse
  16.     
  17.     thing        origin
  18.     
  19.     template    tplSpray=watersplash    local
  20.         
  21.     material    mat1=gen_a4sprite_wfspray.mat  local
  22.     
  23.     flex        pulsetime=0.25
  24.     
  25.     int         temp            local
  26.     
  27. end
  28.  
  29. # ========================================================================================
  30. code
  31.  
  32. startup:
  33.  
  34.     setpulse(pulsetime);
  35.     MaterialAnim(mat1, 5, 1);
  36.     return;
  37.  
  38. # ========================================================================================
  39.  
  40. pulse:
  41.     
  42.     temp = CreateThing(tplSpray, origin);
  43.     CaptureThing(temp);
  44.     ThingFadeAnim(temp, 1, 0, 0.5, 0);
  45.     return;
  46.     
  47. # ========================================================================================
  48.  
  49. end
  50.